package com.dxysun.springboot.repository;

import com.dxysun.springboot.domain.PushToken;

import java.util.List;


public interface PushTokenRepo
{
    void insertPushMessage(PushToken pushToken);

    PushToken queryPushTokenByUnique(PushToken pushToken);

    List<PushToken> queryPushTokenByAccountId(List<String> accountIds, String pushChannel);

    List<PushToken> queryPushTokenFromTo(int from, int to, String pushChannel);

    int unbindToken(PushToken pushToken);

    int updatePushAccount(PushToken pushToken);

    List<PushToken> queryAccountChannelMap(List<String> accountIds);

}